package model

import "gorm.io/gorm"

type Article struct {
	gorm.Model
	AuthorId  int64  `gorm:"not null"`
	TagId     int64  `gorm:"not null"`
	Title     string `gorm:"not null"`
	Describe  string `gorm:"not null"`
	MdContent string `gorm:"not null"`
	Type      int8   `gorm:"not null"`
	Status    int8   `gorm:"not null"` // 1 正常 2 待审核 3 草稿
}

func (m *Article) TableName() string {
	return "article"
}
